<%@ page session="false" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>Results for &quot;${query}&quot;</h2>

<c:choose>
  <c:when test="${not empty users}">
    <ul class="search-results">
      <c:forEach items="${users}" var="user">
        <li>
          <div class="search-result-details">
            <p>${user.name}</p>
          </div>
        </li>
      </c:forEach>
    </ul>
  </c:when>
  <c:otherwise>
    <h2>No users found for query &quot;${query}&quot;.</h2>
  </c:otherwise>
</c:choose>